from random import shuffle, choice


def union_lotto(n=1):
    red_balls = [str(i) for i in range(1, 34)]
    blue_balls = [str(i) for i in range(1, 17)]

    bets = []
    for i in range(n):
        # 打乱红球
        shuffle(red_balls)
        bets.append(','.join([*red_balls[:6], choice(blue_balls)]))
    return bets


if __name__ == '__main__':
    print(union_lotto(5))
